package com.psbc.data.trans.controller;

import com.psbc.data.trans.biz.EdbBiz;
import com.psbc.data.trans.configuration.web.Result;
import com.psbc.data.trans.dto.EdbDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * edb操作接口
 *
 * @author zhenyu.wu
 * @date 2024/4/15 11:21
 */
@RestController
@RequestMapping("/v1")
public class EdbController {

    @Autowired
    private EdbBiz edbBiz;

    @PostMapping("/edb/trans")
    public Result<Boolean> edbTrans(@RequestBody EdbDto edbDto) {

        return Result.success(edbBiz.edbTrans(edbDto));
    }
}
